package com.wancaijinfu.constant;

public class Url {

	public static final String SERVERURL = "http://192.168.1.120:8087/";
	public static final String TEST_IMG = "http://192.168.1.120:8087/";
	
	public static final String INDEX = "api/index";
	public static final String BID = "api/bid";

	public static final String SERVER = "http://192.168.1.101:3000/";
	public static final String TEST_SERVER = "http://120.27.144.118/";

	public static final String RECOMMEND = "borrow/recommend";
	public static final String BORROWLIST = "api2/borrowList.action";
	public static final String LOGIN = "api1/login.action";
	public static final String BORROWCONTENT = "api2/borrow.action";

	public static final String SERVER_AD = "borrow/ads";
	public static final String COLLECTIONLIST = "collectionlist";
	public static final String ACCOUNTLOG = "cashLog";
	public static final String UPLOADHEAD = "upload_avatar.json";
	// index0 header
	public static final String INDEX0HEADER = "i1header.json";
	public static final String INDEX2HEADER = "i2header";

	public static final String USERACCOUNT = "user_account";
	public static final String READPAPER = "red_paper";

	public static final String TENDLOG = "borrow/tendlog";
	public static final String REPAYMENTS = "borrow/repayment";

	public static final String TENDER = "borrow/tend";

	public static final String REGISTER = "register.json";

	public static final String UPDATEUSER = "update_user.json";

	public static final String USERINFO = "user_info.json";

	public static final String RECHARGE = "recharge";
	public static final String CASH = "cash";

	public static String getAddress(String url) {
		return SERVER + url;
	}

	public static String getTestAddress(String url) {
		return TEST_SERVER + url;
	}
}
